home *** CD-ROM | disk | FTP | other *** search
/ Experimental BBS Explossion 3 / Experimental BBS Explossion III.iso / gus / gusfarm.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-08-26  |  4KB  |  128 lines

  1. @echo off
  2.  
  3. rem Check for bad start situations
  4.  
  5. if not exist gf1digi.adv goto BAD_START
  6. IF "%1"=="" goto NO_SPEC
  7. IF not exist %1\simfarm.exe goto BAD_DIR
  8. IF "%ULTRADIR%"=="" goto NO_ULTRA
  9. SET IDIR=%ULTRADIR%\MIDI
  10.  
  11. rem Display title screen
  12.  
  13. :START
  14. cls
  15. echo+
  16. echo   Gravis UltraSound Installation for SimFarm 
  17. echo This program will install the files required for SimFarm
  18. echo to play sound and music on the Gravis Ultrasound.
  19. echo+
  20. echo To use the UltraSound drivers, you will need to load the
  21. echo UltraMid TSR. I will create a batch file that automatically
  22. echo does this before running SimFarm.
  23. echo+
  24. echo The UltraSound files will be replacing the SoundBlaster
  25. echo sound and music files, so after running this install,
  26. echo you will need to run the INSTALL program in your SimFarm
  27. echo directory and change the sound and music settings to
  28. echo SOUNDBLASTER. If you wish to change back to the
  29. echo SoundBlaster files, you will need to re-install SimFarm 
  30. echo from your origional floppy disks.
  31. echo+
  32. echo If you don't feel comfortable with this, or have any
  33. echo problems or questions, please call Maxis Technical
  34. echo support at (510) 253-3755 and they'll be glad to
  35. echo help you out.
  36. echo+
  37. echo If you wish to continue installation, press [ENTER]
  38. echo If you wish you abort installation, press [CTRL]-[C] 
  39. echo then [Y]
  40. pause >nul
  41.  
  42. rem Copy the files
  43.  
  44. cls
  45. echo+ 
  46. echo Copying configuration file to %IDIR%\ULTRAMID.INI
  47. copy ULTRAMID.INI %IDIR%\ULTRAMID.INI >nul
  48. echo Copying Driver files to %1\SOUND
  49. copy GF1DIGI.ADV %1\SOUND\SBDIG.ADV >nul
  50. copy GF1MIDI.ADV %1\SOUND\SBFM.ADV >nul
  51. echo Copying UltraMid TSR to %1\ULTRAMID.EXE
  52. copy ULTRAMID.EXE %1 >nul
  53. echo Copying batch file to %1\FARM.BAT
  54. copy FARM.bat %1 >nul
  55. goto GOOD_DONE
  56.  
  57. rem UltraSound directory evirontment variable not found
  58.  
  59. :NO_ULTRA
  60. echo I can not find your UltraSound install directory or
  61. echo environment variables. Have you fully installed your
  62. echo UltraSound software? Are the UltraSound PATH and SET
  63. echo statements still in your AUTOEXEC.BAT or CONFIG.SYS files?
  64. goto BAD_DONE
  65.  
  66. rem User did not specify SimFarm directory
  67.  
  68. :NO_SPEC
  69. echo I need to know where your copy of SimFarm is on the
  70. echo hard disk. Type INSTALL followed by the full path 
  71. echo where your SimFarm software has been installed. 
  72. echo For instance, INSTALL C:\SIMFARM [ENTER]
  73. goto BAD_DONE
  74.  
  75. rem SIMFARM.EXE not found in specified SimFarm directory
  76.  
  77. :BAD_DIR
  78. echo I could not find the SimFarm files in the
  79. echo directory you specified. Are you sure %1 is where
  80. echo SimFarm was installed to?
  81. goto BAD_DONE
  82.  
  83. rem User did not execute INSTALL.BAT from it's own directory
  84.  
  85. :BAD_START
  86. echo Hey there, I can't find my files! Are you sure you're 
  87. echo running this program from the directory that the patch
  88. echo is in? Are all the files here? Wait, let me put on my
  89. echo glasses.... Nope, not here.
  90. goto BAD_DONE
  91.  
  92. rem Everything checked out O.K.
  93.  
  94. :GOOD_DONE
  95. echo Install complete
  96. echo+  
  97. echo For more information on what I just did and how the
  98. echo drivers work, type GV [ENTER]. Otherwise, go ahead and
  99. echo delete the files in this directory, we're done with them.
  100. echo+
  101. echo I will now run the INSTALL program. You need to change
  102. echo the SOUND and MUSIC settings to SOUNDBLASTER Version 1.5.
  103. echo+
  104. echo Afterwards, and from here on out, to run SimFarm, 
  105. echo type FARM [ENTER] in the SimFarm directory.
  106. echo+
  107. echo To run INSTALL now, press [ENTER]. 
  108. echo If you already installed SimFarm for Soundblaster
  109. echo sound and music, we can skip the INSTALL part by typing
  110. echo [CTRL]-[C] then [Y]. You will then be ready to play
  111. echo SimFarm.
  112. pause >nul
  113.  
  114. rem Unload SBOS and Load UltraMid TSR so sound card check in
  115. rem SETTINGS.EXE passes.
  116.  
  117. cd %1
  118. %ULTRADIR%\SBOS\LOADSBOS -F >nul
  119. ULTRAMID.EXE >nul
  120. INSTALL
  121. echo+
  122. echo To play SimFarm now, type FARM [ENTER]
  123. echo+
  124.  
  125. rem End Of Program
  126.  
  127. :BAD_DONE
  128.